package com.sinosoft.oms.service;


import com.sinosoft.oms.dto.OrderBean;
import com.sinosoft.oms.entity.oms.Appnt;
import com.sinosoft.oms.entity.oms.Insured;
import com.sinosoft.oms.entity.oms.Order;
import com.sinosoft.oms.entity.oms.Product;

import java.sql.SQLException;

/**
 * @author:Frankiegg
 * @Date:2018/5/7
 * @project:bee
 * @Modified By:
 **/
public interface BasicInfoService {
    /**
     * 插入订单
     * @author Frankiegg
     * @param order
     * @param appnt
     * @param insured
     * @param product
     * @date 14:05 2018/5/16
     * @return boolean
     * @throws  SQLException
     */
    boolean postBasicInfo(Order order, Appnt appnt, Insured insured, Product product) throws SQLException;

    /**
     * 删除订单
     * @author Frankiegg
     * @param orderId
     * @date 15:02 2018/5/16
     * @return boolean
     * @throws SQLException
     */
    boolean deleteBasicInfo(String orderId) throws SQLException;
    /**
     * 修改订单
     * @author Frankiegg
     * @param order
     * @param appnt
     * @param insured
     * @param product
     * @date 10:30 2018/5/17
     * @return boolean
     * @throws
     */
    boolean updateBasicInfo(Order order, Appnt appnt, Insured insured, Product product);
    /**
     * 根据orderId查找
     * @author Frankiegg
     * @param orderId
     * @date 10:34 2018/5/17
     * @return com.sinosoft.oms.dto.OrderBean
     * @throws
     */
    OrderBean findOrderBasicInfo(String orderId);
}
